<template>
  <div>
    <sc-salary-table
      :salary-data="gongziJson"
      :config="salaryConfig"
    />
  </div>
</template>

<script>
import ScSalaryTable from '@/components/scSalaryTable/index.vue';
import salaryConfig from '@/config/salary';
export default {
	components: {
    ScSalaryTable
  },
  data() {
    return {
      gongzi: '{"姓名":"闻莉君1","岗位工资":11500,"司龄补贴":2000,"住房补贴":0,"燃气补贴":0,"节假日福利":0,"临时工资补差":0,"地域补贴":0,"增项一":0,"防寒费":0,"值班费":0,"劳保费":0,"临时增项":0,"临时减项":0,"生日补贴":0,"先进奖励":0,"个人公积金":1620,"个人养老":1594,"个人大病统筹":10,"个人失业":99.63,"个人医疗":398.5,"工会费":25,"代扣减项":0,"本次扣税":0,"应发合计":13500,"扣款合计":3747.13,"实发合计":9752.87,"id":"wenlj","pk_psndoc":"0001A210000000000HCC"}',
      gongziJson: {},
      // 根据公司选择配置
      salaryConfig: salaryConfig.companyA
    }
  },
  computed: {
  },
  mounted() {
	this.loadSalaryData();
  },
  methods: {
	async loadSalaryData() {
      // 从API获取工资数据
      //const response = await this.$API.rl.getSalaryData();
      this.gongziJson = JSON.parse(this.gongzi);
    }
  }
}
</script>

<style lang="scss" scoped>
</style>